using UnityEngine;
// [Assembly-CSharp.dll].PopUpManager
public class PopUpManager : MonoBehaviour
{
    // Fields
    private UnityEngine.GameObject exitPanel;
    private UnityEngine.UI.Button rateButton;
    private UnityEngine.UI.Button moreButton;
    private UnityEngine.UI.Button exitButton;
    private UnityEngine.UI.Button privacyButton;
    private UnityEngine.UI.Button yes;
    private UnityEngine.UI.Button no;
    private UnityEngine.UI.Text heading;
    private UnityEngine.UI.Text description;
    private string moreGamesLink;
    private string privacyPolicyLink;
    public static PopUpManager instance;
    
    // Methods
    private void Start()
    {
        UnityEngine.Events.UnityAction val_1 = 536895085;
        val_1 = new UnityEngine.Events.UnityAction(object:  this, method:  1610677443);
        this.rateButton.m_OnClick.AddListener(call:  val_1);
        UnityEngine.Events.UnityAction val_2 = 536895085;
        val_2 = new UnityEngine.Events.UnityAction(object:  this, method:  1610677445);
        this.moreButton.m_OnClick.AddListener(call:  val_2);
        UnityEngine.Events.UnityAction val_3 = 536895085;
        val_3 = new UnityEngine.Events.UnityAction(object:  this, method:  1610677447);
        this.exitButton.m_OnClick.AddListener(call:  val_3);
        UnityEngine.Events.UnityAction val_4 = 536895085;
        val_4 = new UnityEngine.Events.UnityAction(object:  this, method:  1610677449);
        this.privacyButton.m_OnClick.AddListener(call:  val_4);
        mem2[0] = this;
        throw new NullReferenceException();
    }
    private void Update()
    {
    
    }
    public void onMainButtonClicked(string val)
    {
        string val_28;
        string val_29;
        string val_30;
        string val_31;
        val_28 = val;
        mem[536882947] + 56.Play();
        uint val_1 = _PrivateImplementationDetails_.ComputeStringHash(s:  val_28);
        if(val_1 > 1328863488)
        {
            goto label_3;
        }
        
        if(val_1 > 783280263)
        {
            goto label_4;
        }
        
        if(val_1 == 239583162)
        {
            goto label_5;
        }
        
        if(val_1 == 384751642)
        {
            goto label_6;
        }
        
        if(val_1 != 783280263)
        {
                return;
        }
        
        val_29 = 27512056;
        goto label_8;
        label_3:
        if(val_1 > (-1397048724))
        {
            goto label_9;
        }
        
        if(val_1 == (-1397048724))
        {
            goto label_10;
        }
        
        if(val_1 == 1885008720)
        {
            goto label_11;
        }
        
        if(val_1 != 2120216971)
        {
                return;
        }
        
        if((System.String.op_Equality(a:  val_28, b:  -1610605299)) == false)
        {
                return;
        }
        
        val_30 = this.moreGamesLink;
        goto label_31;
        label_4:
        if(val_1 == 885933221)
        {
            goto label_15;
        }
        
        if(val_1 == 1000841804)
        {
            goto label_16;
        }
        
        if(val_1 != 1328863488)
        {
                return;
        }
        
        if((System.String.op_Equality(a:  val_28, b:  -1610605303)) == false)
        {
                return;
        }
        
        this.UpdatePopUpStatus(val:  -1610605303);
        this.transform.GetChild(index:  0).gameObject.SetActive(value:  true);
        UnityEngine.GameObject val_9 = this.yes.transform.GetChild(index:  0).gameObject;
        goto label_26;
        label_9:
        if(val_1 == (-841477441))
        {
            goto label_27;
        }
        
        if(val_1 == (-335902745))
        {
            goto label_28;
        }
        
        if(val_1 != (-134386246))
        {
                return;
        }
        
        if((System.String.op_Equality(a:  val_28, b:  -1610604413)) == false)
        {
                return;
        }
        
        val_30 = this.privacyPolicyLink;
        goto label_31;
        label_5:
        if((System.String.op_Equality(a:  val_28, b:  -1610607637)) == false)
        {
                return;
        }
        
        if(this.exitPanel != null)
        {
            goto label_33;
        }
        
        label_6:
        if((System.String.op_Equality(a:  val_28, b:  -1610604293)) == false)
        {
                return;
        }
        
        val_28 = 27536688;
        label_31:
        UnityEngine.Application.OpenURL(url:  -1610598133(-1610598133) + UnityEngine.Application.identifier);
        this.transform.GetChild(index:  0).gameObject.SetActive(value:  false);
        this.yes.m_OnClick.RemoveAllListeners();
        return;
        label_10:
        val_31 = 27511584;
        goto label_46;
        label_11:
        if((System.String.op_Equality(a:  val_28, b:  -1610607635)) == false)
        {
                return;
        }
        
        UnityEngine.Application.Quit();
        return;
        label_15:
        if((System.String.op_Equality(a:  val_28, b:  -1610607639)) == false)
        {
                return;
        }
        
        this.exitPanel.SetActive(value:  true);
        mem[536882295].ShowAd();
        return;
        label_16:
        val_31 = 27512064;
        goto label_46;
        label_27:
        val_31 = 27508040;
        label_46:
        if((System.String.op_Equality(a:  val_28, b:  val_31)) == false)
        {
                return;
        }
        
        goto label_48;
        label_28:
        val_29 = 27511576;
        label_8:
        if((System.String.op_Equality(a:  val_28, b:  val_29)) == false)
        {
                return;
        }
        
        this.UpdatePopUpStatus(val:  -1610604417);
        this.transform.GetChild(index:  0).gameObject.SetActive(value:  true);
        label_48:
        label_33:
        label_26:
        this.yes.transform.GetChild(index:  0).gameObject.SetActive(value:  false);
    }
    private void UpdatePopUpStatus(string val)
    {
        UnityEngine.Events.UnityAction val_10;
        UnityEngine.UI.Button.UnityEngine.UI.Button.ButtonClickedEvent val_11;
        IntPtr val_12;
        if((System.String.op_Equality(a:  val, b:  -1610604297)) != false)
        {
                this.yes.m_OnClick.RemoveAllListeners();
            this.no.m_OnClick.RemoveAllListeners();
            UnityEngine.Events.UnityAction val_2 = 536895085;
            val_2 = new UnityEngine.Events.UnityAction(object:  this, method:  1610677451);
            this.yes.m_OnClick.AddListener(call:  val_2);
            val_10 = 536895085;
            val_11 = this.no.m_OnClick;
            val_12 = 27452008;
        }
        else
        {
                if((System.String.op_Equality(a:  val, b:  -1610605303)) != false)
        {
                this.yes.m_OnClick.RemoveAllListeners();
            this.no.m_OnClick.RemoveAllListeners();
            UnityEngine.Events.UnityAction val_4 = 536895085;
            val_4 = new UnityEngine.Events.UnityAction(object:  this, method:  1610677455);
            this.yes.m_OnClick.AddListener(call:  val_4);
            val_10 = 536895085;
            val_11 = this.no.m_OnClick;
            val_12 = 27452024;
        }
        else
        {
                if((System.String.op_Equality(a:  val, b:  -1610604417)) != false)
        {
                this.yes.m_OnClick.RemoveAllListeners();
            this.no.m_OnClick.RemoveAllListeners();
            UnityEngine.Events.UnityAction val_6 = 536895085;
            val_6 = new UnityEngine.Events.UnityAction(object:  this, method:  1610677459);
            this.yes.m_OnClick.AddListener(call:  val_6);
            val_10 = 536895085;
            val_11 = this.no.m_OnClick;
            val_12 = 27452040;
        }
        else
        {
                if((System.String.op_Equality(a:  val, b:  -1610607639)) == false)
        {
                return;
        }
        
            this.yes.m_OnClick.RemoveAllListeners();
            this.no.m_OnClick.RemoveAllListeners();
            UnityEngine.Events.UnityAction val_8 = 536895085;
            val_8 = new UnityEngine.Events.UnityAction(object:  this, method:  1610677463);
            this.yes.m_OnClick.AddListener(call:  val_8);
            val_10 = 536895085;
            val_11 = this.no.m_OnClick;
            val_12 = 27452056;
        }
        
        }
        
        }
        
        val_10 = new UnityEngine.Events.UnityAction(object:  this, method:  val_12);
        val_11.AddListener(call:  val_10);
    }
    public PopUpManager()
    {
        this.moreGamesLink = -1610612735;
        this.privacyPolicyLink = -1610612735;
    }
    private void <Start>b__12_0()
    {
        this.onMainButtonClicked(val:  -1610604297);
    }
    private void <Start>b__12_1()
    {
        this.onMainButtonClicked(val:  -1610605303);
    }
    private void <Start>b__12_2()
    {
        this.onMainButtonClicked(val:  -1610607639);
    }
    private void <Start>b__12_3()
    {
        this.onMainButtonClicked(val:  -1610604417);
    }
    private void <UpdatePopUpStatus>b__15_0()
    {
        this.onMainButtonClicked(val:  -1610604293);
    }
    private void <UpdatePopUpStatus>b__15_1()
    {
        this.onMainButtonClicked(val:  -1610604295);
    }
    private void <UpdatePopUpStatus>b__15_2()
    {
        this.onMainButtonClicked(val:  -1610605299);
    }
    private void <UpdatePopUpStatus>b__15_3()
    {
        this.onMainButtonClicked(val:  -1610605301);
    }
    private void <UpdatePopUpStatus>b__15_4()
    {
        this.onMainButtonClicked(val:  -1610604413);
    }
    private void <UpdatePopUpStatus>b__15_5()
    {
        this.onMainButtonClicked(val:  -1610604415);
    }
    private void <UpdatePopUpStatus>b__15_6()
    {
        this.onMainButtonClicked(val:  -1610607635);
    }
    private void <UpdatePopUpStatus>b__15_7()
    {
        this.onMainButtonClicked(val:  -1610607637);
    }

}
